package me.jiatao.paging3.mapping

import me.jiatao.paging3.network.pojo.ArticleItem
import me.jiatao.paging3.room.ArticleEntity

fun articleItem2ArticleEntity(item: ArticleItem): ArticleEntity {
    return ArticleEntity(
        dbID = null,
        id = item.id,
        title = item.title,
        desc = item.desc,
        link = item.link,
        pic = item.envelopePic
    )
}